FROM registry.cn-shanghai.aliyuncs.com/fengzx120/my_jdk1.8:latest
WORKDIR /root
ADD  target/trading_system-0.0.1-SNAPSHOT.jar /root/trading_system-0.0.1-SNAPSHOT.jar
ENV TZ Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8080
CMD ["nohup","java","-jar","trading_system-0.0.1-SNAPSHOT.jar","&"]